import { Button, Modal, Form, Input } from 'antd';
import React, { useState } from 'react';

// 客服会话删除
const Csldel = () => {
    // 弹出对话框
    const [isModalOpen, setIsModalOpen] = useState(false);
    const showModal = () => {
        setIsModalOpen(true);
    };
    const handleOk = () => {
        setIsModalOpen(false);
        console.log(111);
        
    };
    const handleCancel = () => {
        setIsModalOpen(false);
    };
    return (
        <>
            <Button onClick={showModal}
                style={{
                    background: "red",
                    color: "#fff",
                    border: "none",
                }}>
                删除
            </Button>
            <Modal title="确定删除吗" open={isModalOpen} onOk={handleOk} onCancel={handleCancel}>
            </Modal>
        </>
    )
}

export default Csldel
